﻿using Jet.Payment.Cielo.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Jet.Payment.Cielo.Request
{
    [XmlRoot("requisicao-consulta")]
    public class SelectRequest
    {
        internal SelectRequest()
        {
        }
        public SelectRequest(string transactionId)
        {
            Id = Guid.NewGuid().ToString();
            Version = "1.1.1";
            TransactionId = transactionId;
        }

        [XmlAttribute("id")]
        public string Id { get; set; }
        [XmlAttribute("versao")]
        public string Version { get; set; }
        [XmlElement("tid")]
        public string TransactionId { get; set; }
        [XmlElement("dados-ec")]
        public ECData EC { get; set; }
    }
}
